package com.example.event_resource_java.trainapi.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.event_resource_java.authority.mapper.resourceLibrary.SecretKeyMapper;
import com.example.event_resource_java.trainapi.dao.JzUserPermissionDO;
import com.example.event_resource_java.trainapi.mapper.JzUserPermissionMapper;
import com.example.event_resource_java.trainapi.service.JzUserPermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (SecretAssets)表服务实现类
 *
 * @author makejava
 * @since 2024-05-09 10:24:36
 */
@Service("JzUserPermissionService")
public class JzUserPermissionServiceImpl extends ServiceImpl<JzUserPermissionMapper, JzUserPermissionDO> implements JzUserPermissionService {

    @Resource
    private SecretKeyMapper secretKeyMapper;

    @Override
    public Long getTeacherId(Long userId) {
        return secretKeyMapper.getTeacherById(userId);
    }
}

